package lingou.homework.postbar.controller.tool;

import java.util.List;
import java.util.function.Function;

public class Tools {
    public static <A, B> List<? extends B> mapList(List<A> list, Function<? super A, ? extends B> mapper) {
        return list.stream().map(mapper).toList();
    }
}
